{block admin_content}
<h2>Přidat prioritu</h2>
{widget addPriorityForm}
<script type="text/javascript">
$(function(){
	
	$("select[name=priority]").children('option').each(function(){
		$(this).addClass("priority"+$(this).val());
	});
	$("select[name=priority]").change(setPriorityColor);
	
	setPriorityColor();
	function setPriorityColor(){
		$("select[name=priority]").attr("class","").addClass(function(){ return "priority" + $(this).val();});
	}
});
</script>
{/block}